package Ioperation;

import book.Book;
import book.BookList;

public class Showoperation implements Ioperation{
    @Override
    public void work(BookList books) {
        int ret = books.getBooksSize();

        if(ret == 0){
            System.out.println("书架上没有书!");
            return;
        }
        for (int i = 0; i < ret; i++) {
            Book book = books.getBooks(i);
            System.out.println(book);
        }
    }
}
